import request from "@/utils/request.js"

/**
 * 上传文件
 * @param {Object} data
 */
export function uploadFile(data) {
	return request({
		url: "/common/upload",
		upload: true,
		method: "POST",
		fileType: "image",
		filePath: data.filePath,
		name: data.name,
		params: data.params
	})
}
